<?php
/**
 * Created by 784855684@qq.com.
 * Link: https://github.com/lichtung/wshore
 * User: linzh
 * Date: 7/10/17
 * Time: 6:52 PM
 */
declare(strict_types=1);

namespace application\module\admin\library;

/**
 * Class Component 后台组件
 * @property string $innerHTML
 * @package application\module\admin\library
 */
abstract class Component
{
    protected $attrs = [];

    public function __set($name, $value)
    {
        $this->attrs[$name] = $value;
    }

    public function __get($name)
    {
        return $this->attrs[$name]??null;
    }

    abstract public function __toString();
}